package com.example.jetpackcomposelazycolumn.data

import com.example.jetpackcomposelazycolumn.data.network.AdoptMeWebApi
import com.example.jetpackcomposelazycolumn.data.network.RetrofitClient
import com.example.jetpackcomposelazycolumn.models.PostPage

class Repository {

    companion object {
        private var webApi: AdoptMeWebApi = RetrofitClient.createRetrofitClient()

        suspend fun getPets(pageNumber: Int): PostPage {
            return webApi.getPosts(pageNumber = pageNumber)
        }
    }
}